-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve the TimeSeriesRange fromString() #488
base: main
Are you sure you want to change the base?
Conversation
@@ -106,4 +108,11 @@ public static String reformatColumnName(String name) { | |||
name = name.replaceAll("[)]", "[)]"); | |||
return name; | |||
} | |||
|
|||
public static boolean isContainSpecialChar(String str) { | |||
String regEx = "[`~!@#$%^&()+=|{}':;',<>?~!@#¥%……&()+|{}【】‘;:”“’。,、?]|\n|\r|\t"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reduce this set to the smallest one, in accordance with SQL syntactics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the special char definition
@@ -106,4 +108,11 @@ public static String reformatColumnName(String name) { | |||
name = name.replaceAll("[)]", "[)]"); | |||
return name; | |||
} | |||
|
|||
public static boolean isContainSpecialChar(String str) { | |||
String regEx = "[~!@#$%&()+=|{}':;',<>?~]|\r|\n|\t|[\u2E80-\u9FFF]"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Chinese characters are not allowed? Please fix.
No description provided.